import java.util.ArrayList;


public class Autoboxing {

	public static void main(String[] args) {
		Byte byteObj = 22; // Autoboxing conversion
		int i = byteObj; // Unboxing conversion
		System.out.printf("%d%n", i);
		
		ArrayList<Integer> al = new ArrayList<Integer>();
		al.add(22); // Boxing conversion
		
		Integer A = null;
		int a = A;		//java.lang.NullPointerException
		
		System.out.println("A=" + A +"; a=" + a);
	}
}
